package com.zdj.utils;

import android.util.Base64;

/**
 * Created by zdj on 16-11-25.
 */

public class AuthorHelper {

    public static String createBasicValue(String mobile, String password) {
        /**
         * 解决权限验证失败
         * Basic: --> Basic + 空格 <br/>
         * modified by Administrator at 2016/5/12 16:23
         */
        StringBuilder result = new StringBuilder("Basic ");
        String s = mobile + ":" + password;
        result.append(Base64.encodeToString(s.getBytes(), Base64.NO_WRAP));
        return result.toString();
    }
}
